package com.sky.service;

import com.github.pagehelper.Page;
import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.entity.Employee;
import com.sky.result.PageResult;
import com.sky.result.Result;
import org.apache.ibatis.annotations.Select;
import org.springframework.web.bind.annotation.RequestBody;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */

    Employee login(EmployeeLoginDTO employeeLoginDTO);

    public PageResult page(EmployeePageQueryDTO page);

    public void addEmp(@RequestBody EmployeeDTO employeeDTO) throws Exception;

    public void UpDate(Employee employee);

    public Employee getEmp(Integer id) throws Exception;
}
